<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Pannello Controllo Utente</title>
        <ui:include src="Header.xhtml"/>

    </h:head>
    <h:body>
        
        
     <p:panel header="Benvenuto #{login.username}" style="margin-bottom:10px;">



            <p:button value="Modifica Password"   outcome="/ReimpostaPassword.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>
            <p:button value="I Miei Ordini"  outcome="/MieiOrdini.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>

            <p:button value="Aggiungi Prodotti" disabled="#{!redirect.accessoGestoreMagazzino}" outcome="/CreaProdotto.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>

            <p:button value="Modifica Categorie/Marche/Prodotti" disabled="#{!redirect.accessoGestoreMagazzino}" outcome="/GestioneProdotti.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>

            <p:button value="Modifica Stato Ordini"  disabled="#{!redirect.accessoGestoreMagazzino}" outcome="/GestioneOrdini.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>
            
             <p:button value="Gestisci Utenti" disabled="#{!redirect.accessoAmministratore}" outcome="/GestioneUtenti.xhtml" style="width: 500px; position: relative ; left: 25% ; right: 25%"/>
            <br/>


        </p:panel>
<ui:include src="Footer.xhtml"/>  
    </h:body>
</html>

